#!/usr/bin/env python3
"""
Configuration settings for the remote control system
"""

# Network settings
NETWORK = {
    'default_port': 3001,
    'default_host': 'localhost',
    'timeout': 5.0,
    'max_packet_size': 1024,
    'buffer_size': 1024
}

# Performance settings
PERFORMANCE = {
    'mouse_delay': 0.01,      # seconds between mouse events
    'keyboard_delay': 0.01,   # seconds between keyboard events
    'batch_size': 10,         # number of events to batch together
    'max_events_per_second': 1000,
    'enable_failsafe': True   # pyautogui failsafe (move mouse to corner to stop)
}

# Security settings
SECURITY = {
    'allowed_hosts': ['localhost', '127.0.0.1'],  # Add trusted IPs here
    'enable_encryption': False,  # Future feature
    'max_connections': 5,
    'require_authentication': False  # Future feature
}

# Logging settings
LOGGING = {
    'enable_event_logging': False,  # Set to True for debugging
    'enable_performance_stats': True,
    'log_level': 'INFO',  # DEBUG, INFO, WARNING, ERROR
    'stats_interval': 10  # seconds between stats updates
}

# Feature flags
FEATURES = {
    'enable_mouse_capture': True,
    'enable_keyboard_capture': True,
    'enable_scroll_capture': True,
    'enable_drag_capture': True,
    'enable_hotkeys': True,
    'enable_clipboard_sync': False  # Future feature
}

# Key mappings for different operating systems
KEY_MAPPINGS = {
    'windows': {
        'cmd': 'win',
        'option': 'alt',
    },
    'darwin': {  # macOS
        'win': 'cmd',
        'alt': 'option',
    },
    'linux': {
        'cmd': 'super',
        'win': 'super',
    }
}